Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On-demand analysis of past recordings #62

Merged
merged 5 commits into from
Oct 8, 2024
Merged

On-demand analysis of past recordings #62

merged 5 commits into from
Oct 8, 2024

Conversation

wgreenberg
Copy link
Collaborator

  • rayhunter-daemon: API for triggering and reading analysis
  • rayhunter-daemon: rename readonly mode to debug mode
  • rayhunter-daemon: debug mode allows live-loading frontend files
  • rayhunter-check: rework to handle directories
  • rayhunter-check: better output
  • CI: build rayhunter-check

* rayhunter-daemon: API for triggering and reading analysis
* rayhunter-daemon: rename readonly mode to debug mode
* rayhunter-daemon: debug mode allows live-loading frontend files
* rayhunter-check: rework to handle directories
* rayhunter-check: better output
* CI: build rayhunter-check
Copy link
Collaborator

@cooperq cooperq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a bug where the display about number of warnings doesn't update. We should fix this before merging.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think having debug mode and also a debug flag in the compiler is redundant and perhaps a bit confusing? I think we should stick with one or the other.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the rest of the code I think it makes sense to have these as two separate things. But maybe debug mode isn't the right thing to call this one? It's more like no diag mode? or server only mode?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nit I think and does not need to be fixed before merging.

if (row["analysis"]) {
const timestamp = new Date(row["timestamp"]);
const analysis = row["analysis"];
for (const warning of analysis) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should also update the row class here to be tr.warning

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are going to have debug_mode be a config option I think we should have it in the example config. We should at least have a comment explaining what it does though. Unless you think it's enough of a footgun that we shouldn't even put it in there?

@cooperq cooperq merged commit f3e4091 into main Oct 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants